package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter@Setter
public class Gift {
    //礼品id
    private Long id;
    //礼品编号
    private String sn;
    //礼品名称
    private String name;
    //礼品单位:比如包,条,箱
    private String until;
    //礼品所需积分
    private Integer inte;
    //礼品剩余数量
    private Integer endNumber;
    private Integer number;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date recordTime;
    private Integer totalPoint;
    private Member memberId;
}